export default {
    namespaced:true,
    state(){
        return {
            profile:{
                id:'',
                avatar:'',
                nickname:'',
                account:'',
                mobile:'',
                token:''
            },
            redirectUrl:''
        }
    },
    mutations:{
        SET_USER(state, payload){
            state.profile = payload
        },
        REMOVE_USER(state){
            state.profile = {}
        },
        SET_REDIRECT_URL(state, url){
            state.redirectUrl = url
        }
    }
}